<extend name="Base/common"/>
<block name="script">
	<script type="text/javascript">
	$(document).ready(function (){
		$('.jyjg-list .body li').hover(function(){
			$(this).addClass('selected');
		},
		function(){
			$(this).removeClass('selected');
		})
	});
	</script>
</block>
<block name="style">
    <link href="__CSS__/people.css" rel="stylesheet" type="text/css"/>
</block>

<block name="body">
	<div class="col-xs-12">
        {:W('Common/Adv/render',array(array('name'=>'square')))}
    </div>
    <div class="col-xs-6 margin-bottom-15">
    	<div class="group_tags group_types">
            <b>树丛标签：</b>
            <a href="{:U('groups')}" <if condition="!$group_cate">class="active"</if>>全部</a>
            <volist name="parent" id="type">
                <a href="{:U('/Group/Index/groups',array('cate'=>$type['id']))}" data-id="{$type['id']}" class="ptype <if condition="
                   $group_cate eq $type['id']">active</if>">
                {$type.title}
                </a>
            </volist>
        </div>
    </div>
    <div class="col-xs-6">
    	<div class="group_btnwp">
			<h2>教育机构教育方式独一无二，那么赶紧公之于众吧！</h2>
			<a href="{:U('Group/Index/create')}" class="">申请入驻</a>
		</div>
    </div>
    <div class="clearfix visible-xs-block"></div>
    <div class="col-xs-12">
    	<div class="jyjg-list">
				<div class="head">
					<h2>官方机构列表<small>list</small></h2>
					<dl>
						<dt>排序：</dt>
						<dd <if condition="$sort eq 1 ">class="selected"</if> ><a href="{:U('People/Index/square/sort/1')}">人数</a></dd>
						<dd <if condition="$sort eq 2 ">class="selected"</if> ><a href="{:U('People/Index/square/sort/2')}">话题数</a></dd>
					</dl>
				</div>
				<div class="body">
					<ul>
						<php>
							
						</php>
						<volist name="lists.data" id="vo">
							<li>
								<div class="img">
									<a href="{$vo.space_url}" ucard="{$vo.uid}">
                        				<img src="{$vo.avatar128}" class="avatar-img" style="width:72px;"/>
                    				</a>
								</div>
								<div class="text">
									<h2><a ucard="{$vo.uid}" href="{$vo.space_url}">{$vo.nickname|htmlspecialchars}</a><img src="__THEME_PUBLIC__/images/zp21.jpg"/></h2>
									<p>
										{$vo.signature}
									</p>
									<dl>
										<dd>树苗 <span>{$vo.fans}</span></dd>
										<dd>/</dd>
										<dd>话题 <span>{$vo.post_count}</span></dd>
										<dd>/</dd>
										<dd>树丛 <span>{$vo.group_count}</span></dd>
										
									</dl>
								</div>
								<div class="desc">
									<a href="{$vo.space_url}">{$vo.expand_info.机构简介.data|text|getShortSp=40}</a>
								</div>
								<if condition="is_login() && $vo['uid'] != get_uid()">
		                            
		                        {:W('Common/Follow/follow',array('follow_who'=>$vo['uid'],'btn-before','btn-after'))}
		                            
		                        <else/>
		                            <if condition="$vo['uid'] == get_uid()">
		                                <div class="gzbtn">
		                                    <a class="" disabled="disabled">自己</a>
		                                </div>
		                            </if>
		                        </if>
								
							</li>
						</volist>
					</ul>
				</div>
				<div class="gb-pages pull-right">
					{:getPagination($lists['count'],20)}
				</div>
			</div>
		</div>
</block>